package com.api.user.dao;

import com.api.core.ApiMapper;
import com.api.user.model.UserFollow;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

@Mapper
public interface UserFollowMapper extends ApiMapper<UserFollow> {

    List<Map<String, Object>> listByFollowMe(@Param("params") Map<String, Object> params,@Param("order") Map<String, Object> orderParams);
    List<Map<String, Object>> listByMeFollow(@Param("params") Map<String, Object> params,@Param("order") Map<String, Object> orderParams);
    UserFollow findByUserIdAndFansId(@Param("userId") Long userId,@Param("fansId") Long fansId);
}